package com.rabbitmq.sendmessagelate.listence;

import com.rabbitmq.sendmessagelate.config.RabbitMqConfig;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
public class RabbitListence {
    @RabbitListener(queues = RabbitMqConfig.QUEUE_NAME)
    public void rabbltMessage(String message){
        System.out.println(message);
    }
}
